
*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

closing socket '72'. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

closing socket '73'. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          51
poll.fd_count:        0
pollCount:            3554952
pollInCount:          62
pollOutCount:         0
pollCloseCount:       11
pollErrCount:         0
fd add/remove count:  13/13
totalBytesReceived:   58236
totalBytesSent:       126053. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

--- server stopped ---. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

quiting program: closing all sockets. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x012b376c10. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

exit, bye. 	6.5.2022 	13:59:16 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

  database connect time: 0.0608 seconds. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	13:59:36 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	6.5.2022 	13:59:37 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

  database connect time: 0.0107 seconds. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0116ed1050, size: 400. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

All plugins have been loaded. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* cached preference files: demo-fi_nadacode-0 - table/prf/field_type.json, demo-fi_nadacode-0 - system/option.json, demo-fi_nadacode-0 - system/4d.json. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/, https://192.168.33.2:5949/. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949, 192.168.33.2:5949/. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

--- server started in 0.0737 seconds, plugins loaded in 0.0179 seconds, 2022-05-06 13:59:38, used memory 3237.6 kb --- 	 7. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	6.5.2022 	13:59:38 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:11:15 	lx 	(5. palvelin)

closing socket '72'. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

closing socket '73'. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            31008
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

--- server stopped ---. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

quiting program: closing all sockets. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0116ed1050. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

exit, bye. 	6.5.2022 	14:11:16 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

  database connect time: 0.0283 seconds. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:14:25 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	6.5.2022 	14:14:25 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

  database connect time: 0.0101 seconds. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0126c48490, size: 400. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

All plugins have been loaded. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* cached preference files: demo-fi_nadacode-0 - table/prf/field_type.json, demo-fi_nadacode-0 - system/option.json, demo-fi_nadacode-0 - system/4d.json. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/, https://192.168.33.2:5949/. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949, 192.168.33.2:5949/. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

--- server started in 0.0783 seconds, plugins loaded in 0.0263 seconds, 2022-05-06 14:14:27, used memory 3182.8 kb --- 	 7. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	6.5.2022 	14:14:27 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

closing socket '72'. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

closing socket '73'. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            19528
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

--- server stopped ---. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

quiting program: closing all sockets. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0126c48490. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

exit, bye. 	6.5.2022 	14:21:38 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

  database connect time: 0.0283 seconds. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:22:03 	lx 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	6.5.2022 	14:22:03 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

  database connect time: 0.0160 seconds. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x01227e4170, size: 400. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

All plugins have been loaded. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* cached preference files: demo-fi_nadacode-0 - table/prf/field_type.json, demo-fi_nadacode-0 - system/4d.json, demo-fi_nadacode-0 - system/option.json. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/, https://192.168.33.2:5949/. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949, 192.168.33.2:5949/. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

--- server started in 0.0846 seconds, plugins loaded in 0.0133 seconds, 2022-05-06 14:22:05, used memory 3213.5 kb --- 	 7. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	6.5.2022 	14:22:05 	lx 	(5. palvelin)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

closing socket '72'. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

closing socket '73'. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          0
poll.fd_count:        0
pollCount:            67512
pollInCount:          0
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  2/2
totalBytesReceived:   0
totalBytesSent:       0. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

--- server stopped ---. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

quiting program: closing all sockets. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x01227e4170. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

exit, bye. 	6.5.2022 	14:51:37 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

  database connect time: 0.0206 seconds. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:51:51 	lx 	(1. Application process)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:51:52 	lx 	(1. Application process)

Tcp server 2 start check: start. 	6.5.2022 	14:51:52 	_lx_SERVER 	(1. Application process)

Käynnisteään Tcp palvelin 2. 	6.5.2022 	14:51:52 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

  database connect time: 0.0152 seconds. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0118819520, size: 400. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

All plugins have been loaded. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* cached preference files: demo-fi_nadacode-0 - system/option.json, demo-fi_nadacode-0 - system/4d.json, demo-fi_nadacode-0 - table/prf/field_type.json. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/, https://192.168.33.2:5949/. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949, 192.168.33.2:5949/. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

--- server started in 0.1056 seconds, plugins loaded in 0.0203 seconds, 2022-05-06 14:51:53, used memory 3105.7 kb --- 	 7. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	6.5.2022 	14:51:53 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-05-06 14:52:08
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 1152
Content-Uncompressed-Length: 1941

LZ4. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

  database connect time: 0.0050 seconds. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_nadacode' to 'plg4d/plg4d'. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

error: setCurrentConnection could not set local connection for 'plg4d-plg4d-0', check auth/connection.json, add "redirect": ["local"] or other redirect
  [stack traceback:
	/nc-server/lib/util.lua:472: in function 'callPath'
	/nc-server/lib/util.lua:586: in function 'printError'
	/nc-server/lib/db/dconn.lua:399: in function 'setCurrentConnection'
	/nc-server/lib/db/dconn.lua:970: in function 'connection'
	/nc-server/lib/db/dconn.lua:838: in function 'setCurrentOrganization'
	/nc-server/lib/auth.lua:330: in function 'authenticate'
	/nc-server/lib/rest.lua:464: in function 'jsonValue'
	/nc-server/lib/rest.lua:611: in function 'createPostAnswer'
	/nc-server/lib/rest.lua:722: in function 'createAnswer'
	/nc-server/lib/rest.lua:944: in function 'answerFunction'
	/nc-server/lib/server.lua:138: in function 'answer'
	/nc-server/lib/server.lua:224: in function 'in_callback'
	/nc-server/lib/lib_poll.lua:255: in function 'poll_event'
	/nc-server/lib/lib_poll.lua:333: in function 'poll'
	/nc-server/lib/server.lua:309: in function 'pollLoop'
	/nc-server/nc/nc-server.lua:116: in function 'server'
	/nc-server/manager/4d/nc_server_4d.lua:168: in function </nc-server/manager/4d/nc_server_4d.lua:133>
	[C]: in function 'pcall'
	/nc-server/manager/4d/run_from_4d.lua:66: in function </nc-server/manager/4d/run_from_4d.lua:18>]
. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

SELECT pr.product_id, pr.work__position_num_id, pr.name, pr.production_control_type, pr.stock_balance__unit, pr.unit, pr.design_unit, pr.conversion_multiplier, pr.design_conversion_multip, pr.design_unit_2, pr.unit_2, pr.fixed, pr.reserved, pr.available, pr.record_id  FROM product pr  WHERE pr.work__position_num_id <> '' OR pr.reserved <> 0 OR pr.fixed <> 0 OR pr.available <> 0 OR pr.product_id IN (SELECT DISTINCT wme.raw_material_id FROM work_material_estimated wme INNER JOIN work_order wo ON wo.work__position_num_id = wme.work__position_num_id WHERE wo.state IN ('KU','AL')) AND pr.storable = true  ORDER BY pr.product_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_alExe1,:_lx_arExe1,:_lx_atExe4,:_lx_atExe5,:_lx_arExe2,:_lx_arExe3,:_lx_atExe6,:_lx_atExe7,:_lx_arExe4,:_lx_arExe5,:_lx_arExe6,:_lx_atExe8
 - result _lx_atExe1 size: 67, first value: 'AK_421436'
 - query name: new:plugin/nc-calc-server/query/storage-query/product-reserved.json. 	6.5.2022 	14:52:08 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.06845
  
SELECT pr.product_id, pr.work__position_num_id, pr.name, pr.production_control_type, pr.stock_balance__unit, pr.unit, pr.design_unit, pr.conversion_multiplier, pr.design_conversion_multip, pr.design_unit_2, pr.unit_2, pr.fixed, pr.reserved, pr.available, pr.record_id
 FROM product pr
 WHERE pr.work__position_num_id <> '' OR pr.reserved <> 0 OR pr.fixed <> 0 OR pr.available <> 0 OR pr.product_id IN (SELECT DISTINCT wme.raw_material_id FROM work_material_estimated wme INNER JOIN work_order wo ON wo.work__position_num_id = wme.work__position_num_id WHERE wo.state IN ('KU','AL')) AND pr.storable = true
 ORDER BY pr.product_id. 	6.5.2022 	14:52:08 	lx 	(5. palvelin)

error: setCurrentConnection could not set local connection for 'plg4d-plg4d-0', check auth/connection.json, add "redirect": ["local"] or other redirect
  [stack traceback:
	/nc-server/lib/util.lua:472: in function 'callPath'
	/nc-server/lib/util.lua:586: in function 'printError'
	/nc-server/lib/db/dconn.lua:399: in function 'setCurrentConnection'
	/nc-server/lib/db/dconn.lua:970: in function 'connection'
	/nc-server/lib/db/dconn.lua:838: in function 'setCurrentOrganization'
	/nc-server/lib/auth.lua:330: in function 'authenticate'
	/nc-server/lib/rest.lua:464: in function 'jsonValue'
	/nc-server/lib/rest.lua:611: in function 'createPostAnswer'
	/nc-server/lib/rest.lua:722: in function 'createAnswer'
	/nc-server/lib/rest.lua:944: in function 'answerFunction'
	/nc-server/lib/server.lua:138: in function 'answer'
	/nc-server/lib/server.lua:224: in function 'in_callback'
	/nc-server/lib/lib_poll.lua:255: in function 'poll_event'
	/nc-server/lib/lib_poll.lua:333: in function 'poll'
	/nc-server/lib/server.lua:309: in function 'pollLoop'
	/nc-server/nc/nc-server.lua:116: in function 'server'
	/nc-server/manager/4d/nc_server_4d.lua:168: in function </nc-server/manager/4d/nc_server_4d.lua:133>
	[C]: in function 'pcall'
	/nc-server/manager/4d/run_from_4d.lua:66: in function </nc-server/manager/4d/run_from_4d.lua:18>]. 	6.5.2022 	14:52:08 	_lx_SERVER 	(5. palvelin)

SELECT wme.work__position_num_id, wme.row_number, wme.work_phase_est_id, wme.raw_material_id, wme.quantity__unit, wme.unit, wme.quantity__unit_2, wme.unit_2, wme.record_id  FROM work_material_estimated wme  WHERE wme.work__position_num_id IN (SELECT DISTINCT wme.work__position_num_id FROM work_material_estimated wme INNER JOIN work_order wo ON wo.work__position_num_id = wme.work__position_num_id WHERE wo.state IN ('KU','AL'))  ORDER BY wme.work__position_num_id, wme.row_number, wme.raw_material_id  INTO :_lx_atExe1,:_lx_alExe1,:_lx_alExe2,:_lx_atExe2,:_lx_arExe1,:_lx_atExe3,:_lx_arExe2,:_lx_atExe4,:_lx_atExe5
 - result _lx_atExe1 size: 37, first value: '02056'
 - query name: new:form/nc/nc-storage/query/product_material-open.json. 	6.5.2022 	14:52:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT wos.record_id FROM work_order_schedule wos LEFT OUTER JOIN work_order wo ON wo.production_lot = wos.production_lot  WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atRecordId
 - original query: SELECT wos.production_lot, wos.work_phase, wos.work_load_group_id, wo.started_amount, wos.work_phase_state, wos.subtype, wos.produced_amount, wos.failed_amount, wos.remaining_amount, wos.can_be_manufactured, wos.manufacturing_state, wos.record_id FROM work_order_schedule wos  LEFT OUTER JOIN work_order wo ON wo.production_lot = wos.production_lot  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wos.production_lot__work_ph  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_arExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_arExe5,:_lx_alExe2,:_lx_atExe5
 - result _lx_atExe1 size: 127, first value: '02056/01'
 - query name: new:plugin/nc-calc-server/query/storage-query/product_work-schedule-open.json. 	6.5.2022 	14:52:08 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT wo.record_id FROM work_order wo WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atRecordId
 - original query: SELECT wo.work__position_num_id, wo.production_lot, wo.state, wo.started_amount, wo.produced_amount, wo.failed_amount FROM work_order wo  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wo.work__position_num_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3
 - result _lx_atExe1 size: 34, first value: '02056'
 - query name: new:plugin/nc-calc-server/query/storage-query/production_order-open.json. 	6.5.2022 	14:52:08 	_lx_ExecuteSqlNew 	(5. palvelin)

Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:open_ma_4d.lx. 	6.5.2022 	14:54:10 	_lua_ FileRun 	(7. Tool)

err: Document or preference was not found: Mac:Users:pasi:nc:nc-server:manager:4d:open_ma_4d.lx. 	6.5.2022 	14:54:10 	_lua_ FileRun 	(7. Tool)

unload lx environment: does not exist. 	6.5.2022 	14:54:10 	_lua_ FileUnload 	(7. Tool)

Starting to stop tcp server 2, max. delay 1,5 seconds... 	6.5.2022 	14:54:15 	_lx_SERVER 	(6. tbl_ 7)

*** tcp close for sock 72, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

closing socket '72'. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

*** tcp close for sock 73, type 'nil', protocol 'nil', reason: '', previous request length: (no request) bytes ***. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

closing socket '73'. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

 -- Server statistics --
answerCount:          4
poll.fd_count:        1
pollCount:            6984
pollInCount:          5
pollOutCount:         0
pollCloseCount:       0
pollErrCount:         0
fd add/remove count:  3/2
totalBytesReceived:   4898
totalBytesSent:       12499. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

warning: socket type 'number' is not a table, socket number: 77
. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

closing socket '77'. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

poll.expand_fds, free old fds: cdata<struct pollfd *>: 0x0118819520. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0118819520, size: 400. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

--- server stopped ---. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

quiting program: closing all sockets. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

finalizer: free p1 	 cdata<void *>: 0x0118819520. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

exit, bye. 	6.5.2022 	14:54:15 	lx 	(5. palvelin)

Tcp palvelin 2 sammutettu. 	6.5.2022 	14:54:15 	_lx_SERVER 	(5. palvelin)

Käynnisteään Tcp palvelin 2. 	6.5.2022 	14:54:22 	_lx_SERVER 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/table/db_connection_preference.json'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/auth/connection.json'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

    Connected to: 'postgre local socket /tmp, /tmp, database: fi_nadacode, user: manage_demo'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

  database connect time: 0.0231 seconds. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* connect: connection changed to 'postgre-demo/fi_nadacode'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/preference/table/prf/group.json'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* paths:
 - main: '/Users/pasi/nc/nc-server/'
 - bin : '/Users/pasi/4D/mg_v19/Manageri_v19/Resources/bin/bin_osx_arm64/'
 - pref: '/Users/pasi/nc/nc-server/preference/'
 - 4D  : '/Users/pasi/4D/mg_v19/Manageri_v19/'
. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

poll.expand_fds: 50, old fds: nil, new fds: cdata<struct pollfd *>: 0x0158ee68b0, size: 400. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

********************* /Users/pasi/nc/nc-server/ *********************. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

port: 5949, arguments: '[
	5949
]', nc-server.json: '[]'. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

nc_server: debugLevel(0):0  port(5959):5949  closeConnection(0):0. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

1. Loading plugin: nc/worker/auth_worker. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

2. Loading plugin: nc/worker/query_worker. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

3. Loading plugin: nc/worker/query4d_worker. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

4. Loading plugin: nc/worker/call4d_worker. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

All plugins have been loaded. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* cached preference files: demo-fi_nadacode-0 - system/4d.json, demo-fi_nadacode-0 - table/prf/field_type.json, demo-fi_nadacode-0 - system/option.json. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* run in command line: 'ifconfig | grep -E 'inet.[0-9]' | grep -v '127.0.0.1' | awk '{ print $2}''. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

* run in command line: 'LC_ALL=C ifconfig en0 | awk '/ether/{print $2}''. 	6.5.2022 	14:54:23 	lx 	(5. palvelin)

Mac address: f84d896921dc. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

TLS certificate files: /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/cert.pem, /Users/pasi/4D/mg_v19/Manageri_v19/Resources/Lua/preference/cert/privkey.pem. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

NC tcp server waiting on:  http://127.0.0.1:5949/,  http://192.168.1.15:5949/,  http://192.168.33.2:5949/
                          https://127.0.0.1:5949/, https://192.168.1.15:5949/, https://192.168.33.2:5949/. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

NC udp server waiting on: 127.0.0.1:5949/, 192.168.1.15:5949, 192.168.33.2:5949/. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

--- server started in 0.0853 seconds, plugins loaded in 0.0176 seconds, 2022-05-06 14:54:24, used memory 3217.1 kb --- 	 7. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

OSX arm64, using: rapidjson-arm, lfs-ffi. 	6.5.2022 	14:54:24 	lx 	(5. palvelin)

1. uri: HTTP, POST '/rest/nc/query/sql4d' 2022-05-06 14:54:38
'POST /rest/nc/query/sql4d HTTP/1.1
Content-Type: application/json
Connection: keep-alive
User-Agent: nc-rest-sql
Authorization: Basic ???
Content-Encoding: lz4
Accept-Encoding: lz4
Content-Length: 997
Content-Uncompressed-Length: 1620

LZ4. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

* load upper level nc-preference file: '/Users/pasi/nc/nc-server/../nc-preference/.nc-env.json'. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

    Connected to: 'Manageri v12 plg4d local, , database: plg4d, user: manage_demo'. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

  database connect time: 0.0016 seconds. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

* connect: connection changed from 'postgre-demo/fi_nadacode' to 'plg4d/plg4d'. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

* organization id 'plg4d-plg4d-0', combining redirect preferences: '4d, local'. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

4D: SELECT wos.record_id FROM work_order_schedule wos LEFT OUTER JOIN work_order wo ON wo.production_lot = wos.production_lot  WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atRecordId
 - original query: SELECT wos.production_lot, wos.work_phase, wos.work_load_group_id, wo.started_amount, wos.work_phase_state, wos.subtype, wos.produced_amount, wos.failed_amount, wos.remaining_amount, wos.can_be_manufactured, wos.manufacturing_state, wos.record_id FROM work_order_schedule wos  LEFT OUTER JOIN work_order wo ON wo.production_lot = wos.production_lot  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wos.production_lot__work_ph  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_arExe1,:_lx_atExe3,:_lx_atExe4,:_lx_arExe2,:_lx_arExe3,:_lx_arExe4,:_lx_arExe5,:_lx_alExe2,:_lx_atExe5
 - result _lx_atExe1 size: 127, first value: '02056/01'
 - query name: new:plugin/nc-calc-server/query/storage-query/product_work-schedule-open.json. 	6.5.2022 	14:54:38 	_lx_ExecuteSqlNew 	(5. palvelin)

 1. answer time: 00:00:00.02882
  
SELECT wos.production_lot, wos.work_phase, wos.work_load_group_id, wo.started_amount, wos.work_phase_state, wos.subtype, wos.produced_amount, wos.failed_amount, wos.remaining_amount, wos.can_be_manufactured, wos.manufacturing_state, wos.record_id
 FROM work_order_schedule wos
 LEFT OUTER JOIN work_order wo ON wo.production_lot = wos.production_lot
 WHERE wo.state IN ('EK','KU','AL')
 ORDER BY wos.production_lot__work_ph. 	6.5.2022 	14:54:38 	lx 	(5. palvelin)

4D: SELECT wo.record_id FROM work_order wo WHERE wo.state IN ('EK','KU','AL') INTO :_lx_atRecordId
 - original query: SELECT wo.work__position_num_id, wo.production_lot, wo.state, wo.started_amount, wo.produced_amount, wo.failed_amount FROM work_order wo  WHERE wo.state IN ('EK','KU','AL')  ORDER BY wo.work__position_num_id  INTO :_lx_atExe1,:_lx_atExe2,:_lx_atExe3,:_lx_arExe1,:_lx_arExe2,:_lx_arExe3
 - result _lx_atExe1 size: 34, first value: '02056'
 - query name: new:plugin/nc-calc-server/query/storage-query/production_order-open.json. 	6.5.2022 	14:54:38 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT wlg.record_id FROM work_load_group wlg WHERE wlg.state >= 0 INTO :_lx_atRecordId
 - original query: SELECT wlg.work_load_group_id, wlg.state, wlg.name, wlg.info FROM work_load_group wlg  WHERE wlg.state >= 0  ORDER BY wlg.work_load_group_id  INTO :_lx_atExe1,:_lx_alExe1,:_lx_atExe2,:_lx_atExe3
 - result _lx_atExe1 size: 35, first value: 'ALIH'
 - query name: new:plugin/nc-calc-server/query/resource.json. 	6.5.2022 	15:05:51 	_lx_ExecuteSqlNew 	(5. palvelin)

4D: SELECT em.record_id FROM employee em WHERE em.state_ IN (1) INTO :_lx_atRecordId
 - original query: SELECT em.whole_name, em.employee_id FROM employee em  WHERE em.state_ IN (1)  ORDER BY em.whole_name, em.employee_id  INTO :_lx_atExe1,:_lx_atExe2
 - result _lx_atExe1 size: 14, first value: 'Arto Kokkila'
 - query name: new:plugin/nc-calc-server/query/employee.json. 	6.5.2022 	15:05:51 	_lx_ExecuteSqlNew 	(5. palvelin)

Osoitintaulukko on suurempi kuin tyyppitaulukko: <>_prf_apRedirectArr. 	6.5.2022 	20:16:20 	_arr apBlob 	(9. Preference)

Osoitintaulukko on suurempi kuin tyyppitaulukko: <>_prf_apRedirectArr. 	6.5.2022 	20:16:28 	_arr apBlob 	(9. Preference)

Osoitintaulukko on suurempi kuin tyyppitaulukko: <>_prf_apRedirectArr. 	6.5.2022 	20:16:35 	_arr apBlob 	(9. Preference)

Osoitintaulukko on suurempi kuin tyyppitaulukko: <>_prf_apRedirectArr. 	6.5.2022 	20:16:46 	_arr apBlob 	(9. Preference)

Osoitintaulukko on suurempi kuin tyyppitaulukko: <>_prf_apRedirectArr. 	6.5.2022 	20:16:51 	_arr apBlob 	(9. Preference)

*** tcp close for sock 78, type 'nil', protocol 'nil', reason: 'POLLHUP', previous request length: (no request) bytes ***. 	6.5.2022 	22:46:10 	lx 	(5. palvelin)

closing socket '78'. 	6.5.2022 	22:46:10 	lx 	(5. palvelin)

*** tcp close for sock 79, type 'nil', protocol 'HTTP', reason: 'POLLHUP', previous request length: 877 bytes ***. 	6.5.2022 	22:46:10 	lx 	(5. palvelin)

closing socket '79'. 	6.5.2022 	22:46:10 	lx 	(5. palvelin)

